<?php
return [
    'id'=>'classmanage-form',
    'template'=>'form_default',
    'enableClientValidation'=>true,
    'enableAjaxValidation'=>false,
    'options'=>['class'=>'form-validate'],
    'models'=>[
        'classmanage'=>[
            'title'=>'是否开班',
            'th_with'=>80,
            'elements'=>[
                'status'=>[
                    'type'=>'radiolist',
                    'items'=>[
                        '1'=>'是',
                        '0'=>'否',
                    ]
                ],
//                'start_time'=>[
//                    'type'=>'dropdownlist',
//                    'options'=>[
//                        'prompt'=>'开班时间',
//                        'encode'=>false,
//                    ],
//                    'items'=>[],
//                ],
                'cycle'=>[
                    'type'=>'dropdownlist',
                    'options'=>[
                        'encode'=>false,
                    ],
                    'items'=>[],
                ],
                'start_time'=>[
                    'type' => 'text',
                    'options' => ['class' => 'timepicker input-text','style'=>'width:220px']
                ],
                'num'=>[
                    'type' => 'text',
                    'options' => ['class' => 'input-text','style'=>'width:220px']
                ],
                'classroom_id'=>[
                    'type'=>'dropdownlist',
                    'options'=>[
                        'prompt'=>'选择教室',
                        'encode'=>false,
                    ],
                    'items'=>[],
                ],

            ],
        ]
    ]
];
